﻿using Domain.Types;
using Infrastructure.AggregateBase;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;


/// <summary>
/// 管理员表
/// </summary>
[Table("WithDraw")]
public class WithDrawAggregate : AggregateRoot<WithDrawAggregate, int>
{
    [Key]
    [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
    public override int ID { get; set; }
    public int UserID { get; set; }
    public int Money { get; set; }
    public int TaxFee { get; set; }
    public PayChannelEnum AccountType { get; set; }
    public WalletType WalletType { get; set; }
    public WithDrawStatus Status { get; set; }
    [StringLength(20)]
    public string StatusName { get { return Status.ToString(); } set { } }
    public int ReceiveMoney { get;  set; }
    public long BizNo { get; set; }
    public string PayInfo { get; set; }
    [Timestamp]
    public byte[] Version { get; set; }
    public WithDrawAuditStatus AuditStatus { get;  set; }
    [StringLength(20)]
    public string AuditOperator { get;  set; }
    [StringLength(200)]
    public string ErrorMsg { get; set; }
    [StringLength(50)]
    public string PayNO { get; set; }
}

